/**
 * 合同模板——组织
 */
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
import {createPage, getBusinessInfo} from 'nc-lightapp-front';

import HomePage from '../../templet_base/main/container';
import {getAppPageConfig} from 'src/hrpub/common/utils/utils';

let appConfig = getAppPageConfig();
if (new RegExp(/(localhost|127\.0\.0\.1):3006/g).test(window.location.href)) {
    appConfig = {
        pagecode: '60110133',
        appcode: '60110133'
    }
}
let businessInfo = getBusinessInfo();
const props = {
    isGlb: true,
    pk_org:'GLOBLE00000000000000',
    nodeName: "ORG",
    ...appConfig,
    ...businessInfo
};

const PeriodModal = createPage({
    billinfo:[
        {
            billtype: 'grid',
            pagecode: props.pagecode,
            bodycode: 'template'
        }
    ]
})(HomePage);

ReactDOM.render(<PeriodModal
{...props}
/>,
document.querySelector('#app'));
